﻿using System;
using System.Collections;
using Huirui.Cavan.Presentation.Seedwork;
using Huirui.Cavan.Domain.MainBoundedContext.PurchaseModule;
using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using System.Collections.Generic;
using System.Web.Mvc;

namespace Huirui.Cavan.Presentation.ViewModel.PurchaseModule
{
    #region Purchase

    public class PurchaseViewModel : EntityModel<Purchase, string, PurchaseSearch>, IPurchaseViewModel
    {
        public string PurchaseOrders { get; set; }
        public string StockInOutDetails { get; set; }
        public PurchaseOrderSearch PurchaseOrderSearch { get; set; }
        public IList<SelectListItem> Currencies { get; set; }

        public PurchaseViewModel()
        {
            this.Currencies = new List<SelectListItem>();
        }
    }

    public class PurchaseJson : BaseJson<string>
    {
        public decimal TaxRate { get; set; }
        public string EmployeeCode { get; set; }
        public string SupplierCode { get; set; }
        public string SupplierInvoiceNumber { get; set; }
        public string Currency { get; set; }
        public decimal CurrencyRate { get; set; }
        public string WareHouseCode { get; set; }
        public string Contact { get; set; }
        public string ContactTelephone { get; set; }
        public string Remark { get; set; }
    }
    #endregion
}